<div class="zs-ibox" id="MaterialReplace">
	<div class="zs-btnbox">
		<div class="zs-location"> 
		    <a href="#" class="home" ng-click="BackTOTask();"><span>运营管理</span></a> <i class="arrow"></i> 
		    <a href="#"><span>部件/耗材更换</span></a> 
		</div>
		<input type="button" value="返回" class="zs-btn" ng-click="NavService.BackToTask();">
	</div>
	
    <table class="zs-form-tab">
        <tbody>
        <tr>
	           <td style="width: 3%">任务单号</td>
	           <td style="width: 45%"> 
	            	<input type="text" class="zs-input" ng-model="queryObject.queryMaterialObj.TASK_ID" style="width: 240px"/>
	           </td>
         	</tr>
	        <tr>
	        	<td style="width: 3%">部件/耗材</td>
		        <td style="width: 45%">
			        <ul  class="zs-data-sizer" id="MaterialNameUL">
	               		<li ng-click="getMaterialName('all')" orgid="all" class="selected"><a href="#" >全部</a></li>
		                <li ng-click="getMaterialName(curRow.S_DOMAINCODE)" orgid="{{curRow.S_DOMAINCODE}}" value="curRow.S_DOMAINCODE" ng-repeat="curRow in httpData.MaterialNameList.data">
		                	<a href="#" value="curRow.S_DOMAINCODE">{{curRow.S_DOMAINCAPTION}}</a>
		                </li>
			        </ul>
		        </td>
	        </tr>
        </tbody>
    </table>
    
    <table  class="zs-form-tab" width="100%">
	    <tbody>
		    <tr>
		    	<td style="width: 3%">更换时间</td>
		        <td style="width: 45%">
		        	<label>起始日期</label> &nbsp;
					<ag-Datebox class="zs-input" ng-model="queryObject.queryMaterialObj.REPLACE_DATE_FROM" ></ag-Datebox>
					<label>结束日期</label> &nbsp;
					<ag-Datebox class="zs-input" ng-model="queryObject.queryMaterialObj.REPLACE_DATE_TO" ></ag-Datebox>
		        	<input type="button" value="查询" class="zs-btn" ng-click="getMaterialReplaceList()">
		        </td>
		    </tr>
	    </tbody>
	</table>

    <table class="zs-data-tab" width="100%">
    
        <thead>
            <tr>
                <th class="head">监测点</th>
                <th class="head">设备名称</th>
                <th class="head">设备型号</th>
                <th class="head">耗材/部件名称</th>
                <th class="head">数量</th>
                <th class="head">单位</th>
                <th class="head">更换日期</th>
                <th class="head">更换结果</th>
                <th class="head">工程师</th>
                <th class="head">操作</th>
            </tr>
        </thead>
        
        <tbody>
            <tr ng-repeat="curRow in httpData.MaterialReplaceList.data" class="{{ isDoubleNum($index) ? 'even':'' }}">
			    <td class="center"><a><label ng-bind="curRow.STATION_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.EQUIPMENT_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.DEVICE_TYPENUM"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.MATERIAL_NAME_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.MATERIAL_QUANTITY"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.MATERIAL_UNIT_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.REPLACE_DATE"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.REPLACE_RESULT_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.USER_NAME"></label></a></td>
			    <td class="center"><a style="cursor:pointer" ng-click="exportDoc(curRow)">导出报表</a></td>
            </tr>  
        </tbody>
              
    </table>
    
    <div class="zs-page"> 
		<a ng-click="waterDataCommon.firstPage(httpData.MaterialReplaceList,queryObj.queryMaterialObj)">首页</a>
		<a class="pre" ng-click="waterDataCommon.prePage(httpData.MaterialReplaceList,queryObj.queryMaterialObj)">上一页</a>
		<a class="next" ng-click="waterDataCommon.nextPage(httpData.MaterialReplaceList,queryObj.queryMaterialObj)">下一页</a>
		<a ng-click="waterDataCommon.lastPage(httpData.MaterialReplaceList,queryObj.queryMaterialObj)">尾页</a>
		<a ><label ng-bind="httpData.MaterialReplaceList.pageInfo.pageIndex"></label></a> / 
		<a ><label ng-bind="httpData.MaterialReplaceList.pageInfo.pageCount"></label></a>
     </div>  
   
</div>